model netpingme

datatype String
datatype int
datatype Date
datatype DateTime

entity ContactLog {
	owner String sender_id 
	String friend_id
	String log
	DateTime upcoming 
}		

htmlctrl text {
	html	input
	type  'text'
}

htmlctrl friendpicker {
	html	select
}

htmlctrl list {
	html	select
	size '10'
}

view default {
	data {
		ContactLog l
	}
	
	// controls
	div friends {
		friendpicker picker {
	 		init
			bind l friend_id
		}
		text log {
			bind l log 
		}
		post log {
			target l
			upcoming 'mo*2'
		}
	}
	div upcoming {
		list upcoming {
			init
      target l
			bind l key
		}
		delete log {
			target l
		}
	}
}



